package wails_common

import (
	"gitee.com/xgh2012/wails_common/wails_apps"
	"gitee.com/xgh2012/wails_common/wails_core/gui"
	"gitee.com/xgh2012/wails_common/wails_core/systems"
	"time"
)

func Check() {
	time.Sleep(time.Second)
	err := systems.CheckIsRegister(wails_apps.SoftName)
	if err != nil {
		systems.IsRegisterMessage = err.Error()
	}

	if systems.CkExpire() {
		gui.AppDialog.ErrorDialogWithExist("程序已经过期")
		return
	}
}
